package com.share.service;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.share.dao.UserMapper;
import com.share.entity.User;

@Service
public class UserService {
	
	@Autowired
	UserMapper userMapper;
	
	public User selectUserById(int id){
		return userMapper.selectUserById(id);
	}
	
	public List<User> selectUsersByNameAndSex(HashMap<String, String> hashMap){
		return userMapper.selectUsersByNameAndSex(hashMap);
	}
	
	public List<User> selectUsersByIdList(List<Integer> idList){
		return userMapper.selectUsersByIdList(idList);
	}

}
